package com.java.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@TableName("product_picture")
public class Picture implements Serializable {

    public static final Long serialVersion = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;
    @NotNull
    @JsonProperty("product_id")
    private Integer productId;
    @NotBlank
    @JsonProperty("product_picture")
    private String productPicture;
    private String intro;
}
